/**
 * 
 */
package cz.cvut.fit.crhonjar.mi.run.adder;

import java.math.BigDecimal;

import cz.cvut.fit.crhonjar.mi.run.adder.parser.Adder;
import cz.cvut.fit.crhonjar.mi.run.adder.parser.ParseException;

/**
 * @author Jarec
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Adder a = new Adder(System.in);
		while(true){
			BigDecimal result;
			try {
				result = a.one_line();
			} catch (ParseException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
				break;
			}
			System.out.print("Result: "+result+'\n');
		}

	}

}
